/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "成品出入库记录",TableName = "mes_ChuRuKu")]
    public partial class mes_ChuRuKu:BaseEntity
    {
        /// <summary>
       ///主键，唯一标识每条出入库记录
       /// </summary>
       [Key]
       [Display(Name ="主键，唯一标识每条出入库记录")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int id { get; set; }

       /// <summary>
       ///类型(1原材料，2成品，3半成品)
       /// </summary>
       [Display(Name ="类型(1原材料，2成品，3半成品)")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string type1 { get; set; }

       /// <summary>
       ///类别(1出库，2入库)
       /// </summary>
       [Display(Name ="类别(1出库，2入库)")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string type2 { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? create_time { get; set; }

       /// <summary>
       ///制单人
       /// </summary>
       [Display(Name ="制单人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string caozuoyuan { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Comment { get; set; }

       /// <summary>
       ///关联订单 id
       /// </summary>
       [Display(Name ="关联订单 id")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string orderId { get; set; }

       /// <summary>
       ///关联订单编号
       /// </summary>
       [Display(Name ="关联订单编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string orderNo { get; set; }

       /// <summary>
       ///关联生产 id
       /// </summary>
       [Display(Name ="关联生产 id")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string ShengChanId { get; set; }

       /// <summary>
       ///关联生产编号
       /// </summary>
       [Display(Name ="关联生产编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string ShengChanNo { get; set; }

       /// <summary>
       ///编号
       /// </summary>
       [Display(Name ="编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string No { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string status_Type { get; set; }

       /// <summary>
       ///商品详情
       /// </summary>
       [Display(Name ="商品详情")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string goods_info { get; set; }

       /// <summary>
       ///审核状态（0未审核，1审核）
       /// </summary>
       [Display(Name ="审核状态（0未审核，1审核）")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string shenhe { get; set; }

       /// <summary>
       ///生产计划表production的id
       /// </summary>
       [Display(Name ="生产计划表production的id")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string p_id { get; set; }

       /// <summary>
       ///仓库id
       /// </summary>
       [Display(Name ="仓库id")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ck_id { get; set; }

       /// <summary>
       ///货位id
       /// </summary>
       [Display(Name ="货位id")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? hw_id { get; set; }

       /// <summary>
       ///生产计划编号
       /// </summary>
       [Display(Name ="生产计划编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string p_number { get; set; }

       /// <summary>
       ///流转单id
       /// </summary>
       [Display(Name ="流转单id")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? pg_id { get; set; }

       /// <summary>
       ///审核人id
       /// </summary>
       [Display(Name ="审核人id")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string shenhe_uid { get; set; }

       /// <summary>
       ///审核人
       /// </summary>
       [Display(Name ="审核人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string shenhe_name { get; set; }

       /// <summary>
       ///审核时间
       /// </summary>
       [Display(Name ="审核时间")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string shenhe_time { get; set; }

       /// <summary>
       ///领料人id
       /// </summary>
       [Display(Name ="领料人id")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string picking_uid { get; set; }

       /// <summary>
       ///领料人
       /// </summary>
       [Display(Name ="领料人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string picking_name { get; set; }

       /// <summary>
       ///领料班组id
       /// </summary>
       [Display(Name ="领料班组id")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string picking_b_id { get; set; }

       /// <summary>
       ///领料班组
       /// </summary>
       [Display(Name ="领料班组")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string picking_b_name { get; set; }

       /// <summary>
       ///发货单的类型(0普通，1批量)
       /// </summary>
       [Display(Name ="发货单的类型(0普通，1批量)")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string type_crk { get; set; }

       /// <summary>
       ///要求发货时间
       /// </summary>
       [Display(Name ="要求发货时间")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string YaoQiuFaHuoDate { get; set; }

       /// <summary>
       ///合同号
       /// </summary>
       [Display(Name ="合同号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string contract_no { get; set; }

       /// <summary>
       ///领用人
       /// </summary>
       [Display(Name ="领用人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string receiver { get; set; }

       /// <summary>
       ///入库时间
       /// </summary>
       [Display(Name ="入库时间")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string ruku_time { get; set; }

       /// <summary>
       ///地磅重量
       /// </summary>
       [Display(Name ="地磅重量")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string dibang { get; set; }

       
    }
}